package com.chance.cc.crawler.prod.command.trigger.domain.news.yidianzixun;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.news.yidianzixun.realtime.YDZXRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.yidianzixun.trace.YDZXSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger;

/**
 * @author lt
 * @version 1.0
 * @date 2021-04-14 19:31:26
 * @email okprog@sina.com
 */
public class YDZXSimpleCrawlerScheduleTrigger extends CommonCrawlerSchedulerTrigger {


    public static void main(String[] args) {
        publishYDZXRealtimeScheduleTriggerInfo();
    }

    public static void publishYDZXRealtimeScheduleTriggerInfo(){
        CrawlerJob crawlerJob = YDZXSimpleCrawlerSchedulerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                YDZXRealtimeCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                "0 0/10 * * * ?",
                "一点资讯新闻临时采集一次");
    }


}
